<template>
  <div class="ne-container">
    <ne-title title="养老院"/>
    <nursing-home-card
        v-for="item in educationList"
        :key="item.indexCode"
        :row="item"
    />
    <van-empty v-if="!educationList.length" description="暂无数据"/>
    <ne-title title="护工"/>
    <look-card
        v-for="item in dataSource"
        :key="item.indexCode"
        :row="item"
    />
    <van-empty v-if="!dataSource.length" description="暂无数据"/>
  </div>
</template>

<script>
import nursingHomeCard from "./components/NursingHomeCard.vue";
import LookCard from "./components/LookCard.vue";
import {tbKeyPlacesList} from "../../api/tbKeyPlaces";
import LectureCard from "../djzh/components/LectureCard.vue";
import pagingMixin from "../../mixins/pagingMixin";
export default {
  name: 'wx_pages_zhfw_serviceAged',
  components: {LectureCard, nursingHomeCard, LookCard},
  mixins:[pagingMixin],
  data() {
    return {
      educationList:[],
      talentList:[],
      restfulApi:'/tbTalentDatabase/page',
    }
  },
  methods:{
    async searchPlacesList(){
      let res = await tbKeyPlacesList({placesType:'2'})
      if(res.data && res.data.length>0){
        this.educationList = res.data
      }else{
        this.educationList = []
      }
    }
  },
  onLoad() {
    this.searchPlacesList()
    this.search({talentType:'1'})
  }
}
</script>
